<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLogisticsCompaniesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('logistics_companies', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('供应商名称');
            $table->integer('sort')->unsigned()->comment('排序');
            $table->integer('recommend')->unsigned()->default(1)->comment('是否推荐');
            $table->string('addr')->comment('推荐地址');
            $table->string('logo')->default('')->comment('推荐图片');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('logistics_companies');
    }
}
